<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/1/25
  Time: 14:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
    <title>添加</title>
  </head>
  <body>
    <form action="${pageContext.request.contextPath}/person?method=add" method="post">
      <table>
        <tr>
          <td>  人员姓名</td>
          <td>  <input type="text" name="person_name"></td>
        </tr>
        <tr>
          <td>  人员年龄</td>
          <td>  <input type="text" name="person_age"></td>
        </tr>
        <tr>
          <td>  人员地址</td>
          <td>  <input type="text" name="person_address"></td>
        </tr>
        <tr>
          <td>  所在区域</td>
          <td> <select name="person_area_id">
            <c:forEach items="${allArea}" var="area">
              <option value="${area.area_id}">${area.area_name}</option>
            </c:forEach>
          </select></td>
        </tr>
      </table>
    <input type="submit" value="添加">
    <input type="reset" value="重置">

    </form>
  </body>
</html>
